package pacman.entries.pacman.ml.behaviors;

import pacman.game.Constants.DM;
import pacman.game.Constants.GHOST;
import pacman.game.Constants.MOVE;
import pacman.game.Game;

public class EatSingleEdibleGhostBehavior extends Behavior {

	GHOST m_Ghost;
	
	public EatSingleEdibleGhostBehavior(GHOST ghost) {
		super();
		m_Ghost = ghost;
	}
	
	@Override
	public MOVE decide(Game game) {
		return game.getNextMoveTowardsTarget(game.getPacmanCurrentNodeIndex(),game.getGhostCurrentNodeIndex(m_Ghost),DM.PATH);
	}
	
}